/*
 * @Author: yanjikun
 * @Date: 2021-06-21 15:25:03
 * @LastEditors: yanjikun
 * @LastEditTime: 2022-06-13 14:10:59
 * @Description: file content
 */

import { MockMethod } from 'vite-plugin-mock'

export default [
  {
    url: '/api/v1/rights/list',
    method: 'get',
    response: () => {
      return {
        code: 1,
        msg: '成功',
        data: [
          {
            id: 12,
            parentId: null,
            children: null,
            name: '首页',
            icon: 'shouye',
            url: '/Main',
            type: 1,
            layer: null,
            description: null,
            keepAlive: 0,
            sort: 1.0,
            permission: 'Main',
            status: 1,
            hidden: 0,
            createTime: null,
          },
          {
            id: 115,
            parentId: 12,
            children: null,
            name: '监测概况',
            icon: null,
            url: '/Main/monitoringSituation',
            type: 1,
            layer: null,
            description: null,
            keepAlive: 0,
            sort: 4.0,
            permission: '/Main/monitoringSituation',
            status: 1,
            hidden: 0,
            createTime: null,
          },
          {
            id: 9,
            parentId: null,
            children: null,
            name: '系统管理',
            icon: '系统管理',
            url: '/system',
            type: 1,
            layer: null,
            description: null,
            keepAlive: 0,
            sort: 6.0,
            permission: 'system',
            status: 1,
            hidden: 0,
            createTime: null,
          },
          {
            id: 10,
            parentId: 9,
            children: null,
            name: '菜单管理',
            icon: '系统管理',
            url: '/system/menu',
            type: 1,
            layer: null,
            description: null,
            keepAlive: 0,
            sort: 4.0,
            permission: '/system/menu',
            status: 1,
            hidden: 0,
            createTime: null,
          },
          {
            id: 27,
            parentId: 9,
            children: null,
            name: '角色管理',
            icon: null,
            url: '/system/role',
            type: 1,
            layer: null,
            description: null,
            keepAlive: 0,
            sort: 5.0,
            permission: 'role:list:view',
            status: 1,
            hidden: 0,
            createTime: null,
          },
          {
            id: 28,
            parentId: 9,
            children: null,
            name: '用户管理',
            icon: null,
            url: '/system/userControl',
            type: 1,
            layer: null,
            description: null,
            keepAlive: 0,
            sort: 6.0,
            permission: 'org:user:view',
            status: 1,
            hidden: 0,
            createTime: null,
          },
        ],
      }
    },
  },
] as MockMethod[]
